.cm-float-btn {
    position: fixed;
    z-index: 99;
    inset-inline-end: 24px;
    inset-block-end: 48px;
    font-size: 18px;
    width: var(--height-control-large);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    background-color: var(--cui-color-fill-0);
    color: var(--cui-color-text-0);
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);

    .cm-float-btn-body,
    .cm-float-btn-content,
    .cm-badge {
        width: 100%;
        height: 100%;
    }

    .cm-float-btn-body {
        border-radius: 50%;
        transition: all 0.3s ease-in-out;
        &:hover {
            background-color: var(--cui-color-fill-2);
        }
    }
}

.cm-float-btn-group {
    position: fixed;
    inset-inline-end: 24px;
    inset-block-end: 48px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;

    .cm-float-btn {
        position: relative;
        inset-inline-end: auto;
        inset-block-end: auto;
    }

    &.cm-float-btn-group-square {
        border-radius: var(--cui-border-radius-small);
        box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
        gap: 0;
        .cm-float-btn-square {
            box-shadow: none;
            padding: 4px;

            &:not(:last-child) {
                border-bottom: 1px solid var(--cui-color-border);
            }

            &:not(:last-child):not(:first-child) {
                border-radius: 0;
            }
            &:not(:last-child):first-child {
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
            }
            &:not(:first-child):last-child {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
            }

            .cm-float-btn-content {
                min-height: calc(var(--height-control-large) - 8px);
            }
        }
    }
}

.cm-float-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: var(--height-control-large);
}

.cm-float-btn-icon {
    text-align: center;
    margin: auto;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.cm-float-btn-description {
    display: flex;
    align-items: center;
    line-height: 16px;
    font-size: 12px;
}

.cm-float-btn-circle {
    border-radius: 50%;
    .cm-float-btn-body {
        border-radius: 50%;
    }
}

.cm-float-btn-square {
    border-radius: var(--cui-border-radius-small);
    .cm-float-btn-body {
        border-radius: var(--cui-border-radius-small);
    }
}

.cm-float-btn-primary {
    background-color: var(--cui-color-primary);
    color: #fff;

    &:hover {
        background-color: var(--cui-color-primary-hover);
    }
}